import os
import time
import unittest
import HTMLTestRunner

if __name__ == '__main__':
    suite=unittest.defaultTestLoader.discover(start_dir=os.getcwd()+"/scripts",pattern="test*.py")
    f=open(os.getcwd()+r"/report/report-{}.html".format(time.strftime("%Y%m%d %H%M%S")),"wb")
    HTMLTestRunner.HTMLTestRunner(stream=f,verbosity=2,title="A3MALL接口自动化测试报告",description=".....").run(suite)
    f.close()